package xmu.zfw.mapper;


import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import xmu.zfw.domain.Report;

import java.sql.Date;
import java.util.List;

@Mapper
@Component
public interface ReportMapper {
    public List<Report> getAll();
    public List<Report> getReportsByReportType(String reportType);
    public List<Report> getAllUrgent();
    public List<Report> searchReport(Report report, Date startTime, Date endTime);
    public Report getReportByNo(String no);
    public Report getReportById(Integer id);
    public Integer deleteReportById(Integer id);
    public Integer addReport(Report report);
    public Integer modifyReport(Report report);
    List<Report> getReportsBySend(String isSend);
    List<Report> getAllByProgress(String progress);
    List<Report> getAllTimeout();
    List<Report> searchManyReportedReports(Report report, Date startTime, Date endTime);
    List<Report> getToDoReportsBySend(String isSend);
}
